﻿using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace wechat_service
{
    public class AppDbContext : IdentityDbContext<AppIdentityUser, IdentityRole, string>
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            base.OnConfiguring(optionsBuilder);
            optionsBuilder.UseSqlite("Data Source=wechat-test.db");
        }
    }

    public class AppIdentityUser : IdentityUser
    {
        public string WechatOpenid { get; set; }
    }
}
